home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / VCW411.ZIP / GRAPHAPP.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-10  |  1.4 KB  |  60 lines

  1. // -[Keep_Heading]-
  2.  
  3.  
  4. // -[Copyright_Mesg]-
  5. // --------------------------------------------------------------- //
  6. // (c) Copyright 1993-1994. Step Ahead Software Pty Limited. All rights reserved.
  7. // Class Source Filename: GRAPHAPP.cpp
  8. // Description: 
  9. // Graphics application developed with C++Creator. This class is derived from
  10. // TApplication.
  11. // --------------------------------------------------------------- //
  12.  
  13.  
  14. #include "GRAPHAPP.h"
  15.  
  16.  
  17. // -[Keep_cpp_Extras]-
  18. #include "mainwin.h"
  19.  
  20. // -[Module_Function_Decs]-
  21.  
  22.  
  23. // -[Module_Data_Decs_Def]-
  24.  
  25.  
  26. // -[Global_Data_Defs]-
  27.  
  28.  
  29. // -[Static_Member_Data_Defs]-
  30.  
  31.  
  32. // -[Function_Defs]-
  33.  
  34. // Constructs the application object.
  35. GraphicApplication::GraphicApplication(LPSTR AName, HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  36.     : TApplication(AName, hInstance, hPrevInstance, lpCmdLine, nCmdShow)
  37. {
  38. }
  39.  
  40. // Constructs the main window of the application.
  41. void
  42. GraphicApplication::InitMainWindow(void)
  43. {
  44.     MainWindow = new GraphicWindow(NULL, Name);
  45. }
  46.  
  47.  
  48. // WinMain - required by windows to kick start your application.
  49. int PASCAL
  50. WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  51. {
  52.     GraphicApplication GraphApp("C++Creator Step 3 - Simple Graphics Example",
  53.       hInstance, hPrevInstance, lpCmdLine, nCmdShow);
  54.  
  55.     GraphApp.Run();
  56.     return GraphApp.Status;
  57. }
  58.  
  59.  
  60. // -[Persistent]-